package com.enbatis.mybatisplugs.entity.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.util.Date;

@Data
public class FlowTaskDTO {

    //任务ID
    @JsonSerialize(using = ToStringSerializer.class)
    private String id;
    //任务名称
    private String name;
    //任务的创建时间
    private Date createTime;
    //任务的办理人
    private String assignee;
    //流程实例ID
    @JsonSerialize(using = ToStringSerializer.class)
    private String processInstanceId;
    //执行对象ID
    @JsonSerialize(using = ToStringSerializer.class)
    private String executionId;
    //流程定义ID
    @JsonSerialize(using = ToStringSerializer.class)
    private String processDefinitionId;

    //流程名称
    private String processName;

    //申请原因
    private String applyReason;

    @JsonSerialize(using = ToStringSerializer.class)
    //申请人ID
    private Long applyUserId;
    //业务ID
    @JsonSerialize(using = ToStringSerializer.class)
    private Long businessId;
    //申请人
    private String applyUserName;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;
}
